package com.xiaok.netty.client;

import com.xiaok.netty.client.initializer.TCPClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class NettyClientApplication {

    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext context = SpringApplication.run(NettyClientApplication.class, args);
        TCPClient tcpClient = context.getBean(TCPClient.class);
        tcpClient.run();
    }

}
